-- GENERATED SPELL FOR [Shadowsword Commander] --


function spell0_25837(pUnit, Event) --@Battle Shout,Self--
pUnit:FullCastSpellOnTarget(46763,pUnit)
pUnit:RegisterEvent('Sorts_25837', 30333, 1)
end

function spell1_25837(pUnit, Event) --@Shield Slam,n/a--
pUnit:FullCastSpellOnTarget(46762,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25837', 3339, 1)
end

function Sorts_25837(pUnit, Event)
local choix_sorts_25837 = math.random(0, 1)
if choix_sorts_25837 == 0 then
pUnit:RegisterEvent('spell0_25837', 1, 1)
end
if choix_sorts_25837 == 1 then
pUnit:RegisterEvent('spell1_25837', 1, 1)
end
end

function mob25837_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25837', math.random(1500, 3000), 1)
end

function mob25837_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25837_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25837_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25837, 1, 'mob25837_Action')
RegisterUnitEvent(25837, 2, 'mob25837_Leave')
RegisterUnitEvent(25837, 3, 'mob25837_Kill')
RegisterUnitEvent(25837, 4, 'mob25837_Die')
